package com.lagou.service;

import com.lagou.vo.Student;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class StudentServiceImpl implements IStudentService {

    @Override
    public List<Student> findAllStudents() {
        System.out.println("服务端：执行了findAllStudents方法");
        List<Student> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            Student student = new Student();
            list.add(student);
        }
        return list;
    }

    @Override
    public Student findOneStudent(String useless) {
        System.out.println("服务端：执行了findOneStudent方法");
        Student student = new Student();
        return student;
    }

    @Override
    public void updateStudent(String useless) {
        System.out.println("服务端：执行了updateStudent方法");
    }
}
